package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTSalesman implements java.io.Serializable {
	/**
	 * pk ID
	 **/
	Long id;
	/**
	 * 姓名
	 **/
	String name;
	/**
	 * 学历
	 **/
	String education;
	/**
	 * 地址
	 **/
	String addr;
	/**
	 * 公司
	 **/
	String corporation;
	/**
	 * 证件号
	 **/
	String identityCode;
	/**
	 * 电话
	 **/
	String tel;
	/**
	 * 状态(1:可用；0：停用)
	 **/
	String status;
	/**
	 * 备注
	 **/
	String memo;
	/**
	 * 年龄
	 **/
	String age;
	/**
	 * 性别
	 **/
	String sex;
	/**
	 * 修改时间
	 **/
	Date modiDate;
	/**
	 * 所属机构ID
	 **/
	Long deptId;
	/**
	 * 业务员代码
	 **/
	String saleCode;
	private VDepartment dept;
	/**
	 * 创建人
	 **/
	private VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;
	/**
	 * 修改人
	 **/
	private VUser modiUser;

	public EmpTSalesman() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEducation() {
		return this.education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getCorporation() {
		return this.corporation;
	}

	public void setCorporation(String corporation) {
		this.corporation = corporation;
	}

	public String getIdentityCode() {
		return this.identityCode;
	}

	public void setIdentityCode(String identityCode) {
		this.identityCode = identityCode;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getAge() {
		return this.age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getModiDate() {
		return this.modiDate;
	}

	public void setModiDate(Date modiDate) {
		this.modiDate = modiDate;
	}

	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public String getSaleCode() {
		return this.saleCode;
	}

	public void setSaleCode(String saleCode) {
		this.saleCode = saleCode;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}

	public VUser getModiUser() {
		return modiUser;
	}

	public void setModiUser(VUser modiUser) {
		this.modiUser = modiUser;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatusStr() {
		if (this.status.equals("1"))
			return "启用";
		else
			return "停用";
	}

	public String getEducationStr(){
		return FormateUtil.getInstance().getNameByCode("p_edu", this.status);
	}		
	public String getModiDateStr() {
		return DateUtil.dateToString(this.modiDate, DateUtil.patternE);
	}

	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternE);
	}

}